#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    int a, b;
    scanf("%d%d", &a, &b);
    for (int i = 0; i < a; i++)
    {
        for (int j = i; j < i + 2 * b; j += 2)
            printf("%c", j + 65);
        printf("\n");
    }
    return 0;
}